<div class="container">
    <div class="row">
        <div class="span4 offset4">
        	<form action="{$cururl}" method="post" class="form-horizontal">
            	<fieldset>
            	    {if !$errors.login && !$errors.password && $errors.exists}
                        <div class="alert alert-error">{$errors.exists}</div>
                    {/if}
            	    <div class="control-group{if $errors.login} error{/if}">
                        <label for="login" class="control-label">Логин</label>
                        <div class="controls">
                            <input type="text" name="login" id="login" class="input-xlarge" value="{$aData.login}">
                            {if $errors.login}
                            <p class="help-block">{$errors.login}</p>
                            {else}
                            <p class="help-block invisible">&nbsp;</p>
                            {/if}
                        </div>
                    </div>
                    <div class="control-group{if $errors.password} error{/if}">
                        <label for="password" class="control-label">Пароль</label>
                        <div class="controls">
                            <input type="text" name="password" id="password" class="input-xlarge" value="{$aData.password}">
                            {if $errors.password}
                            <p class="help-block">{$errors.password}</p>
                            {else}
                            <p class="help-block invisible">&nbsp;</p>
                            {/if}
                        </div>
                    </div>
                    <div class="form-actions">
                        <button class="btn btn-primary" type="submit"><i class="icon-user icon-white"></i> Войти</button>
                    </div>
            	</fieldset>
        	</form>
        </div>
    </div>
</div>